<!DOCTYPE html>
<html>
<#include "../head.html">
    <body class="full">
    <div class="mc">
        <div>
            <div class="mc-l">
                <!--左侧导航---{-->
                <div id="navPanelContainer">
                    <div class="system-logo cd"></div>
                    <!--管理员信息---{-->
                    <#include "../adminInfo.html">
                        <!--管理员信息---}-->
                        <div class="nav-wrap">
                            <#include "left.html">
                        </div>
                </div>
                <!--左侧导航---}-->
            </div>
            <div class="mc-m">
                <div class="navToggle"></div>
            </div>
            <div class="mc-r">
                <!--顶部导航---{-->
                <#include "../topNav.html">
                    <!--顶部导航---}-->

                    <!--面包屑导航---{-->
                    <#assign moduleName="新增活动">
                        <#include "banner.html">
                            <!--面包屑导航---}-->

                            <!--工具栏--{-->
                            <div id="toolbar" class="clearfix">
                          
                            </div>
                            <!--工具栏--}-->

                            <div id="main" class="clearfix">
                                <form name="form1" method="post" action="/admin/activity/updateActivity.html" onsubmit="return check_form();" enctype="multipart/form-data" >
                                    <div class="valBox w750">
                                        <div class="top">
                                            <strong>新增活动</strong>
                                        </div>
                                        <div class="val clearfix">
                                            <ul>
                                            	<li>
                                                    <div class="title">活动主题：</div>
                                                    <div class="v"> 
                                                    	  <input type="text" name="title" size="100" value="${act.title!}"/>
                                                    </div>
                                                </li>
                                                <li>
                                                    <div class="title">活动链接：</div>
                                                    <div class="v"> 
                                                    	  <input type="text" name="url" size="100" value="${act.url!}"/>
                                                    </div>
                                                </li>
                                                <li>
                                                    <div class="title">讨论帖链接：</div>
                                                    <div class="v"> 
                                                    	  <input type="text" name="topicUrl" size="100" value="${act.topicUrl!}"/>
                                                    </div>
                                                </li>
                                                <li>
                                                    <div class="title">宣传图：</div>
                                                    <div class="v">
                                                       <input type='file' name='updateAct' value='' size='20' >
                                                    </div>
                                                </li>
                                                 <li>
                                                    <div class="title">背景颜色值：</div>
                                                    <div class="v">
                                                        <input type="text" name="bgColor" value="${act.bgColor!}"/>
                                                    </div>
                                                </li>
                                                <li>
                                                    <div class="title">开始时间：</div>
                                                    <div class="v">
                                                       <input  type="text" name="startTime" onclick="change_picktime('yyyy-MM-dd HH:mm:ss')" value="${act.startTime!}"/>
                                                    </div>
                                                </li>
                                                <li>
                                                    <div class="title">结束时间：</div>
                                                    <div class="v">
                                                       <input  type="text" name="endTime" onclick="change_picktime('yyyy-MM-dd HH:mm:ss')" value="${act.endTime!}"/>
                                                    </div>
                                                </li>
                                                <li>
                                                    <div class="title">状态：</div>
                                                    <div class="v">
                                                    	<#if act.status==0>
                                                        <input type="radio" name="status" value="0" checked="checked">未开启
														<input type="radio" name="status" value="1">进行中
														<input type="radio" name="status" value="2">已结束
														<#elseif act.status=1>
														<input type="radio" name="status" value="0" >未开启
														<input type="radio" name="status" value="1" checked="checked">进行中
														<input type="radio" name="status" value="2">已结束
														<#elseif act.status=2>
														<input type="radio" name="status" value="0" >未开启
														<input type="radio" name="status" value="1" >进行中
														<input type="radio" name="status" value="2" checked="checked">已结束
														</#if>
                                                    </div>
                                                </li>
                                                
                                                <li>
                                                    <div class="title">置顶：</div>
                                                    <div class="v">
                                                    	<#if act.isTop==0>
                                                    	<input type="radio" name="isTop" value="0" checked="checked">否
														<input type="radio" name="isTop" value="1">是
														<#else>
														<input type="radio" name="isTop" value="0" >否
														<input type="radio" name="isTop" value="1" checked="checked">是
														</#if>
                                                    </div>
                                                </li>
                                            </ul>
                                            <div class="other">
                                           	 <input type="hidden"  name="id" value="${act.id?c}" />
                                                <input type="hidden"  name="actionType" value="addRole" />
                                                <input type="submit"  value="修改" class="input-button confirm" />
                                            </div>
                                        </div>
                                    </div>

                                </form>

                            </div>
            </div>
        </div>
        <div>
            <!--尾部--{-->
            <td colspan="3" class="mc-b"><#include "../foot.html"></td>
            <!--尾部--}-->
        </div>
    </div>
     <div class="msgClass">${rsmsg!""}</div>
    <#include "../jsPage.html">
    </body>
</html>
